#include "imgshow.h"

imgshow::imgshow(QImage image, QWidget *parent)
{
        imageLabel = new QLabel(this);
       imageLabel->setPixmap(QPixmap::fromImage(image));

       QVBoxLayout *layout = new QVBoxLayout(this);
       layout->addWidget(imageLabel);
       this->setLayout(layout);
       this->setFixedSize(image.width() + 10, image.height() + 50);
}
